int ledcount = 8;
int ledpin[]={2,3,4,5,6,7,8,9};
const unsigned char arr[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
void setup()
{
   for(int i=0;i<ledcount;i++)
  {
     pinMode(ledpin[i],OUTPUT);
  } 
  
}

  void deal(const char value)
  {
     for(int a=0;a<ledcount;a++)
    {
       digitalWrite(ledpin[a],bitRead(value,a));
    } 
  }
void loop()
{
  for(int b=0;b<10;b++)
  {
     deal(arr[b]);
     delay(1000); 
  }
}
